package com.sky.mapper;

import com.sky.entity.SetmealDish;

import java.util.List;

public interface SetmealDishMapper {
    /**
     * 根据菜品id查询关联套餐
     * @param dishId
     * @return
     */
    List<Long> getSetDishId(Long dishId);
    /**
     * 添加关联表
     * @param setmealDish
     */
    void save(SetmealDish setmealDish);

    /**
     * 根据套餐id查看关联
     * @param setmealId
     * @return
     */

    List<SetmealDish> query(Long setmealId);

    /**
     * 根据套餐id删除关联
     * @param setmealId
     */
    void delete(Long setmealId);
}
